/**
 *      Created by luyon on 17/3/15.
 *
 *          前端所有请求路径管理文件
 *
 *          （定义所有请求的相对路径）
 */


/**
 *
 *      模块使用：
 *          1、将该模块引入需要的组建中 ；
 *          2、const urlManager = new UrlManager() ; urlManager.test()  即可获得return的相对路径
 *
 * */

class UrlManager {
    authencatedUser() {
        return "8888/services/releaseStatus";
    }

    login() {
        return "8888/services/users/login";
    }

    like() {
        return "8888/services/like/like_film"
    }

    filmList() {
        return "9797/services/film/search";
    }

    getPhoneCode() {
        return "8888/services/users/send_code";
    }

    regisAccount() {
        return "8888/services/users/register";
    }

    filmDetailGetCreator() {
        return "8888/services/users/filmCreator";
    }

    filmGetCommentFirst() {
        return "8888/services/comment/h5_list1";
    }
    filmGetCommentTwo() {
        return "8888/services/comment/h5_list2";
    }
    commentByOne() {
        return "8888/services/reply/find_by_comment";
    }

    follow() {
        return "8888/services/follow/attention"
    }

    //取消关注
    unfollow() {
        return "8888/services/follow/attention"
    }

    campaignList() {
        return "7878/services/campaign/list";
    }

    checkPhone() {
        return "8888/services/users/checkOnesPhone"

    }

//增加播放量
    increaseViews() {
        return "9797/services/film/increaseView";
    }

    reply() {
        return "8888/services/reply/save";
    }
    cancelLike(){
        return "8888/services/like/cancel_like"
    }
    checkCode() {
        return "8888/services/users/checkCode"
    }

    editPassword() {
        return "8888/services/users/editPassword"
    }

    // 企业认证
    authenticationOrg() {
        return "8888/services/authentication/organization"
    }

    //个人认证
    authenticationPersonal() {
        return "8888/services/authentication/personal "
    }

    filmVideoUrl() {
        return "9797/services/film/find_video"
    }
    findAllReply(){
        return "8888/services/reply/find_all";

    }
    //作品搜索
    searchFilm() {
        return "9797/services/film/search"
    }

    otherFilms() {
        return "9797/services/film/h5_find_other_films"
    }

    //作者搜索
    searchPerson() {
        return "8888/services/authentication/search"
    }

    filmDescription() {
        return "9797/services/film/detail"
    }

    //类别
    filmCategory() {
        return "9797/services/film/searchAllCategory"
    }

    //移动端
    //我的作品
    mobileMineList() {
        return "9797/services/film/searchAllCategory"
    }

    //登录
    mobileLogin() {
        return "8888/services/users/login"
    }

    //个人主页作者信息
    mobileFindCreator() {
        return "8888/services/users/findCreator";
    }

    //加关注
    mobileFollow() {
        return "8888/services/follow/attention"
    }
    deleteComment(){
        return "8888/services/comment/delete";
    }//删除回复
    deleteReply(){
        return "8888/services/reply/delete";

    }
    //取消关注
    mobileUnfollow() {
        return "8888/services/follow/attention"
    }

    //个人主页 作品列表
    mobileFindFilmsByUserId() {
        return "8888/services/users/findFilmsByUserId";
    }

    //首页
    mobileHome() {
        return "8888/services/users/h5_home";
    }

    //验证三方登录
    checkThirdBind() {
        return "8888/services/users/thirdBind";
    }
    saveComment(){
        return "8888/services/comment/save"
    }
    //第三方登录
    thirdLogin() {
        return "8888/services/users/weiBo";
    }
    shareWeiXin(){
        return "8888/services/users/weiXinShare"
    }
    mobileDemand(){
        return "7979/services/demand/list"
    }
    mobileDemandDetail(){
        return "7979/services/demand/mobileDemandDetail"
    }
    registrationList(){
        return "7979/services/demandDetail/getRegistration"
    }
    mobileDemandComments(){
        return "7979/services/demand/mobileDemandComments"
    }
    //删除评论
    deleteComments() {
        return "7979/services/demandDetail/deleteComments";
    }
    //新增一条评论
    insertComment() {
        return "7979/services/demandDetail/insertComment";
    }
    //活动详情
    campaignDetail() {
        return "7878/services/campaign/detail";
    }
    //活动微信调用
    shareWeiXinCampaign(){
        return "8888/services/users/weiXinCampaign"
    }
    //需求微信调用
    shareWeiXinDemand(){
        return "8888/services/users/weiXinDemand"
    }
    reAuthentication(){
        return "8888/services/authentication/init"
    }

    initGeetest (){
        return "8888/services/users/initGeetest";
    }
    checkUserExist(){
        return "8888/services/users/check_user_exist";
    }
    getModifyPswSendCode(){
        return "8888/services/users/modifyPswSendCode"
    }
    insertCommentGeetest(){
        return "7979/services/demandDetail/insertCommentGeetest";
    }
}

export {UrlManager as default} ;
